package com.controller.Hua;

import com.pojo.Hua.HuaMaterialWarehousePdView;
import com.pojo.Hua.HuaProductionlines;
import com.pojo.Hua.HuaProductionlinesToolView;
import com.pojo.Hua.ProductionlinesCategoryView;
import com.service.Hua.IProductionlinesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
@RequestMapping("production/")
public class ProductionlinesController {
    @Autowired
    IProductionlinesService iProductionlinesService;

    @GetMapping("getProductionlinesName")
    public List<HuaProductionlines> getProductionlinesName() {
        List<HuaProductionlines> productionlinesName = iProductionlinesService.getProductionlinesName();
        return productionlinesName;
    }

    @GetMapping("getProductionlines")
    public List<HuaProductionlinesToolView> getProductionlines(Long productionLineId) {
        List<HuaProductionlinesToolView> productionlines = iProductionlinesService.getProductionlines(productionLineId);
        return productionlines;
    }
}
